﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace SuperMarketSystem
{
    public partial class StageSelect : Form
    {
        Trans trans;//引入一个参数传递类
        public StageSelect(ref Trans trans)//功能选择
        {
            InitializeComponent();
            this.trans = trans;
            this.trans.setStage(0);
        }

        private void btnIn_Click(object sender, EventArgs e)//进货系统
        {
            trans.setStage(1);
            this.Close();
        }

        private void btnOut_Click(object sender, EventArgs e)//销售系统
        {
            trans.setStage(2);
            this.Close();
        }

        private void btnProvider_Click(object sender, EventArgs e)//供应商系统
        {
            trans.setStage(3);
            this.Close();
        }

        private void btnATM_Click(object sender, EventArgs e)//收银台系统
        {
            trans.setStage(4);
            this.Close();
        }
    }
}
